package com.qyhl.webtv.commonlib.entity.act;

import java.util.List;

public class TeleVoteBean {

    /**
     * surveyAct : {"id":19,"title":"测试调查活动","siteId":127,"creator":"18224427277","startTime":"2018-12-20 15:24:47","endTime":"2018-12-22 00:00:00","createTime":"2018-12-20 15:26:12","status":1}
     * entityList : [{"id":42,"name":"高新区","supportName":"赞同","opposeName":"反对","support":19,"oppose":11,"supportPer":0.6333,"opposePer":0.3667,"userSupport":1,"userOppose":0,"sactId":19},{"id":43,"name":"武侯区","supportName":"赞同","opposeName":"反对","support":18,"oppose":11,"supportPer":0.6207,"opposePer":0.3793,"userSupport":1,"userOppose":0,"sactId":19},{"id":44,"name":"红枫镇","supportName":"赞同","opposeName":"反对","support":0,"oppose":11,"supportPer":0,"opposePer":1,"userSupport":0,"userOppose":1,"sactId":19}]
     */

    private SurveyActBean surveyAct;
    private List<EntityListBean> entityList;

    public SurveyActBean getSurveyAct() {
        return surveyAct;
    }

    public void setSurveyAct(SurveyActBean surveyAct) {
        this.surveyAct = surveyAct;
    }

    public List<EntityListBean> getEntityList() {
        return entityList;
    }

    public void setEntityList(List<EntityListBean> entityList) {
        this.entityList = entityList;
    }

    public static class SurveyActBean {
        /**
         * id : 19
         * title : 测试调查活动
         * siteId : 127
         * creator : 18224427277
         * startTime : 2018-12-20 15:24:47
         * endTime : 2018-12-22 00:00:00
         * createTime : 2018-12-20 15:26:12
         * status : 1
         */

        private int id;
        private String title;
        private int siteId;
        private String creator;
        private String startTime;
        private String endTime;
        private String createTime;
        private int status;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public int getSiteId() {
            return siteId;
        }

        public void setSiteId(int siteId) {
            this.siteId = siteId;
        }

        public String getCreator() {
            return creator;
        }

        public void setCreator(String creator) {
            this.creator = creator;
        }

        public String getStartTime() {
            return startTime;
        }

        public void setStartTime(String startTime) {
            this.startTime = startTime;
        }

        public String getEndTime() {
            return endTime;
        }

        public void setEndTime(String endTime) {
            this.endTime = endTime;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }
    }

    public static class EntityListBean {
        /**
         * id : 42
         * name : 高新区
         * supportName : 赞同
         * opposeName : 反对
         * support : 19
         * oppose : 11
         * supportPer : 0.6333
         * opposePer : 0.3667
         * userSupport : 1
         * userOppose : 0
         * sactId : 19
         */

        private int id;
        private String name;
        private String supportName;
        private String opposeName;
        private int support;
        private int oppose;
        private double supportPer;
        private double opposePer;
        private int userSupport;
        private int userOppose;
        private int sactId;
        //自己加的字段，控制投票重复点击
        private boolean canVote = true;

        public boolean isCanVote() {
            return canVote;
        }

        public void setCanVote(boolean canVote) {
            this.canVote = canVote;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSupportName() {
            return supportName;
        }

        public void setSupportName(String supportName) {
            this.supportName = supportName;
        }

        public String getOpposeName() {
            return opposeName;
        }

        public void setOpposeName(String opposeName) {
            this.opposeName = opposeName;
        }

        public int getSupport() {
            return support;
        }

        public void setSupport(int support) {
            this.support = support;
        }

        public int getOppose() {
            return oppose;
        }

        public void setOppose(int oppose) {
            this.oppose = oppose;
        }

        public double getSupportPer() {
            return supportPer;
        }

        public void setSupportPer(double supportPer) {
            this.supportPer = supportPer;
        }

        public double getOpposePer() {
            return opposePer;
        }

        public void setOpposePer(double opposePer) {
            this.opposePer = opposePer;
        }

        public int getUserSupport() {
            return userSupport;
        }

        public void setUserSupport(int userSupport) {
            this.userSupport = userSupport;
        }

        public int getUserOppose() {
            return userOppose;
        }

        public void setUserOppose(int userOppose) {
            this.userOppose = userOppose;
        }

        public int getSactId() {
            return sactId;
        }

        public void setSactId(int sactId) {
            this.sactId = sactId;
        }
    }
}
